package com.myl.dao.system;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.myl.domain.system.Module;
import com.myl.domain.system.User;

public interface UserDao {

	//增删改查
	   int save(User user);
	   
	   int delete(User user);
	   
	   int update(User user);
	   
	   User findById(String id);
	   
	   List<User> findAll();

	void deleteRole(String userId);

	void updateRole(@Param("userId") String userId, @Param("roleId")String roleId);

	User findByEmailAndPwd(@Param("email")String email, @Param("password")String password);

	 
	
}
